/////////////////////////////////////////////////////////////////////////////
/*/	
 *	Creator:		Joshua C. Rouzer
 *	Title:			Economy Header
 *	Last Edited:	06/14/2013
 *	Summary:		Sets up the economy system
/*/
/////////////////////////////////////////////////////////////////////////////
#ifndef CECON_H
#define CECON_H
#include<vector>
class CPlayerShip;
class CEconomy{
	std::vector<CPlayerShip*> m_vPlayers;
	int Search(CPlayerShip *player);
public:
	static CEconomy* GetInstance( void );
	CEconomy();
	virtual ~CEconomy();
	void AddPlayer(CPlayerShip *player);
	void RemovePlayer(CPlayerShip *player);
	void AddCredits(unsigned int nAmount);
	void SubCredits(unsigned int nAmount, CPlayerShip *player);
	void BoughtShooter(CPlayerShip *player);
	void BoughtShielder(CPlayerShip *player);
	void BoughtRocketeer(CPlayerShip *player);
	void BoughtMech(CPlayerShip *player);
	void BoughtHeli(CPlayerShip *player);
	void BoughtBarricade(CPlayerShip *player);
	int  GetUnitCost(int UnitType);
};
#endif